AssetPayload

data class AssetPayload(val color: AssetColor? = null, val sourceSet: List<Source>? = null, val typeface: Typeface? = null, val transformPreset: AssetTransformPreset? = null, val properties: List<AssetProperty>? = null, val stylePreset: String? = null)

Structured information about the contained asset.

Constructors

Link copied to clipboard
constructor(color: AssetColor? = null, sourceSet: List<Source>? = null, typeface: Typeface? = null, transformPreset: AssetTransformPreset? = null, properties: List<AssetProperty>? = null, stylePreset: String? = null)

Properties

Link copied to clipboard
val color: AssetColor? = null

A color representing this asset.

Link copied to clipboard

Description of the properties of this asset.

Link copied to clipboard
val sourceSet: List<Source>? = null

A source set containing different representations of this asset.

Link copied to clipboard
val stylePreset: String? = null

A declarative style preset applied to a block via applyAssetSourceAssetToBlock, carried as a raw JSON document. The engine parses and applies it; binding code treats it as an opaque pass-through.

Link copied to clipboard

A transform preset for this asset.

Link copied to clipboard
val typeface: Typeface? = null

A typeface representing this asset.